﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvvmHelper;
using System.ComponentModel;
using System.Windows;

namespace MVVMKKSample.VM
{
    public class vmBase : DependencyObject, INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged; //プロパティチェンジ用ハンドル


        #region JOBNAME

        public String JOBNAME
        {
            get { return _JOBNAME; }
            set
            {
                _JOBNAME = value;
                PropertyChanged.Raise(this, JOBNAMEName);
            }
        }

        private String _JOBNAME;
        internal static readonly string JOBNAMEName = PropertyName<vmBase>.Get(_ => _.JOBNAME);

        #endregion

        #region UserID

        public string UserID
        {
            get { return _UserID; }
            set
            {
                _UserID = value;
                PropertyChanged.Raise(this, UserIDName);
            }
        }

        private string _UserID;
        internal static readonly string UserIDName = PropertyName<vmBase>.Get(_ => _.UserID);

        #endregion


        #region UserName

        public String UserName
        {
            get { return _UserName; }
            set
            {
                _UserName = value;
                PropertyChanged.Raise(this, UserNameName);
            }
        }

        private String _UserName;
        internal static readonly string UserNameName = PropertyName<vmBase>.Get(_ => _.UserName);

        #endregion


    }
}
